/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.data.entity;

import com.thinkgem.jeesite.modules.hk.adv.entity.HkAllAdv;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 广告数据Entity
 * @author 罗天文
 * @version 2018-03-20
 */
public class HkAdvData extends DataEntity<HkAdvData> {
	
	private static final long serialVersionUID = 1L;
	private HkAllAdv source;		// 源id
	private String playCount;		// 播放总数
	private String praiseCount;		// 点赞总数
	private String integralCount;		// 积分总数
	
	public HkAdvData() {
		super();
	}

	public HkAdvData(String id){
		super(id);
	}

	public HkAllAdv getSource() {
		return source;
	}

	public void setSource(HkAllAdv source) {
		this.source = source;
	}
	
	@Length(min=0, max=11, message="播放总数长度必须介于 0 和 11 之间")
	public String getPlayCount() {
		return playCount;
	}

	public void setPlayCount(String playCount) {
		this.playCount = playCount;
	}
	
	@Length(min=0, max=11, message="点赞总数长度必须介于 0 和 11 之间")
	public String getPraiseCount() {
		return praiseCount;
	}

	public void setPraiseCount(String praiseCount) {
		this.praiseCount = praiseCount;
	}
	
	@Length(min=0, max=11, message="积分总数长度必须介于 0 和 11 之间")
	public String getIntegralCount() {
		return integralCount;
	}

	public void setIntegralCount(String integralCount) {
		this.integralCount = integralCount;
	}
	
}